x86emul: correct DECLARE_ALIGNED()
authorJan Beulich <jbeulich@suse.com>
Fri, 17 Mar 2017 08:33:45 +0000 (09:33 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 17 Mar 2017 08:33:45 +0000 (09:33 +0100)
commitda091ea2f194dc5e4c785ff432872f570eb6b531
tree51c4470e22cda9a1153b6947f7ecb35ebb898d8d
parent182602911c6796d413ac6672bc0d02a95a6281e5
x86emul: correct DECLARE_ALIGNED()

Stop creating an excessively large array on the stack, by properly
taking into account the array element size when establishing its
element count (and of course also when calculating the pointer to
be actually used to access the memory).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/x86_emulate/x86_emulate.c